/**
 * 衣物分类数据
 * 采用text/value/children格式的二级分类结构
 */
export const clothesCategories = [
  {
    text: '上衣',
    value: '1',
    children: [
      { text: 'T恤', value: '1-1', },
      { text: '衬衫', value: '1-2', },
      { text: '毛衣', value: '1-3', },
      { text: '针织衫', value: '1-4', },
      { text: '卫衣', value: '1-5', },
      { text: 'POLO衫', value: '1-6', },
      { text: '背心', value: '1-7', },
      { text: '吊带', value: '1-8', },
      { text: '其他上衣', value: '1-9', }
    ]
  },
  {
    text: '下装',
    value: '2',
    children: [
      { text: '牛仔裤', value: '2-1', },
      { text: '休闲裤', value: '2-2', },
      { text: '西裤', value: '2-3', },
      { text: '运动裤', value: '2-4', },
      { text: '短裤', value: '2-5', },
      { text: '裙裤', value: '2-6', }
    ]
  },
  {
    text: '裙子',
    value: '3',
    children: [
      { text: '连衣裙', value: '3-1', },
      { text: '半身裙', value: '3-2', },
      { text: 'A字裙', value: '3-3', },
      { text: '包臀裙', value: '3-4', },
      { text: '百褶裙', value: '3-5', },
      { text: '短裙', value: '3-6', },
      { text: '长裙', value: '3-7', }
    ]
  },
  {
    text: '外套',
    value: '4',
    children: [
      { text: '夹克', value: '4-1', },
      { text: '风衣', value: '4-2', },
      { text: '大衣', value: '4-3', },
      { text: '羽绒服', value: '4-4', },
      { text: '棉服', value: '4-5', },
      { text: '西装', value: '4-6', },
      { text: '卫衣外套', value: '4-7', },
      { text: '运动外套', value: '4-8', },
      { text: '皮衣', value: '4-9', }
    ]
  },
  {
    text: '鞋子',
    value: '5',
    children: [
      { text: '运动鞋', value: '5-1', },
      { text: '休闲鞋', value: '5-2', },
      { text: '皮鞋', value: '5-3', },
      { text: '靴子', value: '5-4', },
      { text: '拖鞋', value: '5-5', },
      { text: '凉鞋', value: '5-6', },
      { text: '高跟鞋', value: '5-7', },
      { text: '帆布鞋', value: '5-8', }
    ]
  },
  {
    text: '配饰',
    value: '6',
    children: [
      { text: '帽子', value: '6-1', },
      { text: '围巾', value: '6-2', },
      { text: '手套', value: '6-3', },
      { text: '墨镜', value: '6-4', },
      { text: '腰带', value: '6-5', },
      { text: '袜子', value: '6-6', },
      { text: '包包', value: '6-7', },
      { text: '项链', value: '6-8', },
      { text: '耳环', value: '6-9', },
      { text: '手镯', value: '6-10', }
    ]
  },
  {
    text: '运动装',
    value: '7',
    children: [
      { text: '运动套装', value: '7-1', },
      { text: '瑜伽服', value: '7-2', },
      { text: '游泳衣', value: '7-3', },
      { text: '健身服', value: '7-4', },
      { text: '跑步服', value: '7-5', }
    ]
  },
  {
    text: '家居服',
    value: '8',
    children: [
      { text: '睡衣', value: '8-1', },
      { text: '家居套装', value: '8-2', },
    ]
  }
];

/**
 * 衣物分类图标映射
 */
export const clothesCategoryIcons = {
  '上衣': 'upper-garment.svg',
  '下装': 'pants.svg',
  '裙子': 'skirt.svg',
  '外套': 'coat.svg',
  '鞋子': 'shoes.svg',
  '配饰': 'accessories.svg',
  '运动装': 'sportswear.svg',
  '家居服': 'home-clothes.svg'
};

/**
 * 根据一级分类获取对应的图标
 * @param {string} category - 一级分类名称
 * @returns {string} 对应的图标
 */
export const getCategoryIcon = (category) => {
  return clothesCategoryIcons[category] || 'upper-garment.svg'; // 默认返回上衣图标
};